Fix handling of commands containing double quotes in gdb-mi
authorJim Blandy <jimb@red-bean.com>
Sun, 26 Feb 2012 09:38:45 +0000 (17:38 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 26 Feb 2012 09:38:45 +0000 (17:38 +0800)
commit37e27e2c35a71a5175e4c78ce6ad2fd3a432c948
tree05c2f6604b3b320e17861f176f6d9a7d60c95047
parentf7161fa0ffbb535e8aaf8d01abb86e0c843adff3
Fix handling of commands containing double quotes in gdb-mi

* lisp/progmodes/gdb-mi.el (gdb-mi-quote): New function.
(gdb-send): Apply it to the operand of the '-interpreter-exec
console' command, so that we can pass arguments with (say) quotes
in them.  Store exact string sent in gdb-debug-log (Bug#10765).
lisp/ChangeLog
lisp/progmodes/gdb-mi.el